{% extends BASE_TEMPLATE %}
{% load i18n %}
{% load url from future %}

{% block content %}

	{% include "yummy/list_order_header.html" %}

	{% for one in object_list %}
		<div class="row">
			<a href="{% url "yummy:recipe_detail" one.category.path one.slug one.pk %}">

				<div class="span2 thumbnail">
					<img src="{{ one.get_top_photo }}"/>
				</div>
				<div class="span4">
					<h3>{{ one.title }}</h3>
				</div>
			</a>
		</div>
	{% endfor %}

	{% if is_paginated %}
		<div class="pagination">
			<ul>
				{% for num in paginator.page_range %}
					{% if num == page_obj.number %}
						<li class="disabled">
							<span class="current page">{{ num }}</span>

							{% else %}
						<li>
						<a href="?page={{ num }}"> {{ num }}</a>
					{% endif %}

				</li>
				{% endfor %}
			</ul>
		</div>
	{% endif %}
{% endblock %}
